package com.example.electronicmall.http;

import com.example.electronicmall.bean.ChoicepositionDataBean;
import com.example.electronicmall.bean.CommdityData;
import com.example.electronicmall.bean.CommdityOneBean;
import com.example.electronicmall.bean.ProductOne;
import com.example.electronicmall.bean.DocxFristBean;
import com.example.electronicmall.bean.DocxSeconBean;
import com.example.electronicmall.bean.ShoppingHttpBeanInside;
import com.example.electronicmall.bean.ShoppingHttpBeanoutside;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

public interface ElectronicMallRequest {
    //购物车接口
    @GET("/api/v1/cartItem/cartItem/1")
     Call<ShoppingHttpBeanoutside<ShoppingHttpBeanInside>>
     requestshoppingCart() ;

    //订单结算
    @POST("/api/v1/cartItem/confirmation?")
    @FormUrlEncoded
    Call <DocxFristBean>requestshoppingdocx
    (@Field("memberId")int memberId,
     @Field("productId")int productId,
     @Field("productSkuId")int productSkuId);

    //用户的全部收货地址
    @GET("/api/v1/cartItem/memberReceiveAddressList/1")
    Call<ChoicepositionDataBean>requestshoppingactivity();

    //商品分类
    @POST("/api/v1/product/category/findPmsProductCategoryBYLever")
    Call<CommdityOneBean<CommdityData>>requestComment();

   //商品分类
    @POST("/api/v1/product/category/findPmsProductCategoryBYLever")
    Call<CommdityOneBean>requestLeftComment();

    //商品列表
    @GET("/api/v1/product/findproduct")
    Call<ProductOne> getProduct();

    //商品品牌 commodity brand

}
